<script setup lang="ts">
const defaultForm={
  name:'',
  show:'',
  order:'',
  mark:'',
};
const form=reactive({...defaultForm});
const dialogFormVisible=ref(true);
</script>

<template>
<div>
<AuthenText>
<pre>域名分组功能，让您管理域名变得更方便。</pre>
</AuthenText>
  <div class="mb-5">
    <el-button class="w-40 ml-2" type="primary" @click="dialogFormVisible=true">添加分组</el-button>
  </div>
  <el-card>
    <el-table
        ref="multipleTable1"
        :data="[{
          date: '2016-05-03',
          name: '王小虎',
          address: ''
        }]"
        tooltip-effect="dark"
        style="width: 100%"
    >
      <el-table-column
          label="域名"
      >
        <template slot-scope="scope">{{ scope.row.date }}</template>
      </el-table-column>
      <el-table-column
          label="分组名称"
          sortable>
        <template slot-scope="scope">{{ scope.row.date }}</template>
      </el-table-column>
      <el-table-column
          prop="name"
          label="域名数量"
      >
      </el-table-column>
      <el-table-column
          prop="name"
          label="排序"
      >
      </el-table-column>
      <el-table-column
          prop="name"
          label="添加时间"
      >
      </el-table-column>
      <el-table-column
          prop="name"
          label="分组备注"
      >
      </el-table-column>
      <el-table-column
          prop="address"
          label="操作"
      >
        <template slot-scope="scope">
          <div class="flex w-full">
            <el-button class="ml-1">删除</el-button>
          </div>
        </template>
      </el-table-column>
    </el-table>
    <div>
      <div class="flex">
        <el-checkbox class="ml-2"></el-checkbox>
        <el-button class="ml-4" type="primary">批量删除</el-button>
      </div>
      <div>
        <MyPage></MyPage>
      </div>
    </div>
  </el-card>
  <el-dialog title="正在添加分组" :visible.sync="dialogFormVisible">
    <el-form>
      <el-form-item label="名称" >
        <el-input v-model="form.name" placeholder="请输入名称"></el-input>
      </el-form-item>
      <el-form-item label="店铺展示" >
        <el-radio-group v-model="form.show" placeholder="请选择活动区域">
          <el-radio label="是" :value="1"></el-radio>
          <el-radio label="否" value=""></el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="排序" >
        <el-input v-model="form.order" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="备注" >
        <el-input v-model="form.mark" placeholder="请输入备注"></el-input>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">取 消</el-button>
      <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
    </div>
  </el-dialog>
</div>
</template>

<style scoped lang="scss">

</style>